<template>
  <div class="dy-main">
    <div class="dy-header">
      <x-header title="活期互转" :left-options="{backText: ''}"></x-header>
    </div>
    <div class="dy-body">
      <group gutter="0">
        <cell title="付款账号" :value="cardNo" is-link></cell>
      </group>
      <group gutter="0">
        <cell title="可用余额" :value="显示右箭头" is-link></cell>
      </group>
      <group gutter="0">
        <cell title="转存金额" :value="显示右箭头" is-link></cell>
      </group>
      <group gutter="0">
        <cell title="转出账户" :value="payeeNo" is-link></cell>
      </group>
    </div>
    <!--<div class="dy-footer"></div>-->
  </div>
</template>
<script>

export default{
  data () {
    return {
      cardNo: '6210 **** **** 0476',
      payeeNo: '6210 **** **** 8888', // 转出账户
      tranAmt: '12.000.00' // 转出金额

    }
  },
  methods: {
    goNext () {
      let _this = this
      window.WebViewJavascriptBridge.callHandler('nativeRequest',
        JSON.stringify({
          'requstSource': 'internetRequest',
          'url': 'mstep.do?act=business',
          'params': {'method_Name': 'CI005002', 'user_Data': { cardNo: _this.cardNo }}
        }),
        function (response) {
          response = JSON.parse(response)
          if (response.status === 0 || response.status === '0') {
            let returnData = response.data.data[0]
            if (returnData.status === '成功') {
              _this.showPositionValue = true
              _this.status = 1
            } else {
              // todo 失败的展示
              _this.showPositionValue = true
              _this.status = 0
            }
          } else {
            console.log('fail')
          }
        })
    },

    /**
     * 弹出框显示，并将点击的栏目序号赋给指定值
     * @param index
     */
    judge (index) {
      this.termSub = index // 将序号传入临时的一个值中
      this.show = true // 开启弹出框
    }
  }
}
</script>
<style lang="less">
</style>
